<?php
/**
 * CreateTime: 2023/12/27 14:16
 * User:LinQ
 */

namespace App\Models\Client;

use App\Models\BasicModel;

class ClientModel extends BasicModel
{
    protected $table = 'clients';

    protected $primaryKey = 'client_id';

    protected $fillable = [
        'client_id',
        'com_id',
        'client_name',
        'client_contacts',
        'client_code',
        'status',
        'client_id',
        'owner_id',
        'client_union_id',
        'client_temp_law_file_id',
        'client_temp_law_not_sign_file_id',
        'client_temp_law_file_import_count',
        'created_at',
        'updated_at',
    ];

    protected $casts = [
        'client_id' => 'integer',
        'com_id' => 'integer',
        'client_name' => 'string',
        'client_contacts' => 'string',
        'client_union_id' => 'string',
        'client_code' => 'string',
        'status' => 'integer',
        'client_temp_law_file_id' => 'integer',
        'client_temp_law_not_sign_file_id' => 'integer',
        'client_temp_law_file_import_count' => 'integer',
        'owner_id' => 'integer',
        'created_at' => 'string',
        'updated_at' => 'string',
    ];

    protected $hidden = [
        'status',
        'created_at',
        'updated_at',
    ];
}